SQL::LocalDBStopInstance Method
Syntax
Arguments
- InstanceName
The name of the instance to stop.
- TimeoutInSeconds
Optional. Default value is 0. A numeric value defining how long to wait, in seconds, for the operation to complete before returning. A value of 0 means the opeartion will not wait for the instance to terminate before returning.
- SendNoWait
Optional. Default value is .f.. Stops the SQLLocalDB instance without performing checkpoints on any database. When the server restarts, a rollback operation will occur for incomplete transactions.
- KillProcess
Optional. Default value is .f. If true, the instance will be terminated using the kill command.
Description
Stop the specified SQLLocalDB instance.
Discussion
SQL::LocalDB::StopInstance stops the LocalDB instance defined by the InstanceName parameter. If you want to delete a SQLLocalDB instance that is running, you must stop the instance before you can delete it.